home *** CD-ROM | disk | FTP | other *** search
/ ...taking it to the Macs! / ...taking it to the Macs!.iso / Extras / ActiveX Mac SDK / ActiveX SDK / Headers / INITGUID.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-22  |  1.5 KB  |  40 lines  |  [TEXT/????]

  1. /*****************************************************************************\
  2. *                                                                             *
  3. * initguid.h -    Definitions for controlling GUID initialization                  *
  4. *                                                                             *
  5. *               OLE Version 2.0                                               *
  6. *                                                                             *
  7. *               Copyright (c) 1992-1994, Microsoft Corp. All rights reserved. *
  8. *                                                                             *
  9. \*****************************************************************************/
  10. /*
  11. // Include after compobj.h to enable GUID initialization.  This 
  12. //              must be done once per exe/dll.
  13. //
  14. // After this file, include one or more of the GUID definition files.
  15. //
  16. // NOTE: ole2.lib contains references to all GUIDs defined by OLE.
  17. */
  18.  
  19. #define __INITGUID__
  20. #define _INITGUID_H_
  21.  
  22. #ifndef DEFINE_GUID
  23. #pragma error "initguid: must include compobj.h first."
  24. #endif
  25.  
  26. #undef DEFINE_GUID
  27.  
  28.  
  29. #if !defined(_MSC_VER) || defined(_PPCMAC)
  30.  
  31. #define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
  32.     EXTERN_C const GUID name = { l, w1, w2, b1, b2,  b3,  b4,  b5,  b6,  b7,  b8 }
  33.  
  34. #else
  35.  
  36. #define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
  37.     EXTERN_C __declspec(allocate("_FAR_DATA")) GUID name = { l, w1, w2, b1, b2,  b3,  b4,  b5,  b6,  b7,  b8 }
  38.  
  39. #endif
  40.